package org.lex.ftp.net;

import org.lex.net.ftp.IFTPClient;
import org.lex.net.ftp.util.FTPClientConfig;
import org.lex.net.ftp.util.FTPClientFactory;

public class MyFTPClientFactory extends FTPClientFactory {
	static final MyFTPClientFactory instance = new MyFTPClientFactory();

	public static FTPClientFactory getInstance() {
		return instance;
	}

	@Override
	public IFTPClient newFTPClient() {
		return newFTPClient(FTPClientConfig.DEFAULT_CONFIG);
	}

	@Override
	public IFTPClient newFTPClient(FTPClientConfig config) {
		return new ApacheFTPClient();
	}
}
